<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:tiles="http://tiles.apache.org/tags-tiles"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" lang="en">

<head>
<title>My JSP 'messageList.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
</head>

<body>
	<a th:href="@{j_spring_security_logout}">Logout!!!</a>
    <a th:href="@{'messagePost'}">Post</a>
    <ul th:each="message : ${messages}">
    	<li> Author</li>
    	<li th:text="${message.author}"></li>
    	<li> Title</li>
    	<li th:text="${message.title}"></li>
    	<li> body</li>
    	<li th:text="${message.body}"></li>
    	<li ><a th:href="@{'messageDelete?messageId=' +${ message.id } }">Delete</a> </li>
    </ul>
</body>
</html>
